import { SET_PROFILE } from "../actionTypes"
const initState = {
    token: "",
    adminname: "",
    checkedKeys: [],
}
export const userReducer = (state = initState, { type, payload }) => {

    switch (type) {
        case SET_PROFILE:
            return payload; //登录之后获取的对象
            break;
        default: return state
    }
}